package com.toubutu.audio.admin.dto;

import com.toubutu.audio.entity.VideoTag;
import com.toubutu.audio.valid.ValidGroup;
import com.toubutu.common.BaseDto;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 戒躁
 * @version 1.0
 * @date 2024年01月14日 19:13
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class VideoTagDto extends BaseDto<VideoTag> {

    @NotNull(message = "标签id不能为空!",groups = {ValidGroup.Update.class})
    private Integer tagId;

    @NotBlank(message = "标签名称不能为空!",groups = {ValidGroup.Add.class, ValidGroup.Update.class})
    private String tagName;


}
